#
# Try to find SDL 1.3 library and include path.
# Once done this will define
#
# SDL13_FOUND
# SDL13_INCLUDE_PATH
# SDL13_LIBRARIES
#

FIND_PATH( SDL13_INCLUDE_PATH SDL/SDL.h
		/usr/include
		/usr/local/include
		/sw/include
		/opt/local/include
		DOC "The directory where SDL/SDL.h resides")
FIND_LIBRARY( SDL13_LIBRARY
		NAMES SDL
		PATHS
		/usr/lib64
		/usr/lib
		/usr/local/lib64
		/usr/local/lib
		/sw/lib
		/opt/local/lib
		DOC "The SDL 1.3 library")

FIND_LIBRARY( SDL13MAIN_LIBRARY
		NAMES SDLmain
		PATHS
		/usr/lib64
		/usr/lib
		/usr/local/lib64
		/usr/local/lib
		/sw/lib
		/opt/local/lib
		DOC "The SDL 1.3 main library")

set(SDL13_LIBRARIES ${SDL13_LIBRARY} ${SDL13MAIN_LIBRARY})

IF (SDL13_INCLUDE_PATH)
	SET( SDL13_FOUND 1 CACHE STRING "Set to 1 if SDL 1.3 is found, 0 otherwise")
ELSE (SDL13_INCLUDE_PATH)
	SET( SDL13_FOUND 0 CACHE STRING "Set to 1 if SDL 1.3 is found, 0 otherwise")
ENDIF (SDL13_INCLUDE_PATH)

MARK_AS_ADVANCED( SDL13_FOUND )
